package org.lboot.flow.module.event.sp.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author kindear
 * 服务注册参数
 */
@Data
@ApiModel(value = "服务注册参数")
public class ServiceProviderRegisterParams {
    @NotBlank(message = "事件ID不可为空")
    @ApiModelProperty(value = "事件ID")
    String eventId;

    @NotBlank(message = "服务实现ID不可为空")
    @ApiModelProperty(value = "服务实现ID")
    String serviceId;

    @NotBlank(message = "服务名称不可为空")
    @ApiModelProperty(value = "服务名称")
    String serviceName;

    @ApiModelProperty(value = "服务实现版本")
    String version;

    @NotNull(message = "服务实现优先级不可为空")
    @ApiModelProperty(value = "服务实现优先级")
    Integer priority;

    @ApiModelProperty(value = "实现语言")
    String lang;

    @NotBlank(message = "节点信息不可为空")
    @ApiModelProperty(value = "所处节点")
    String node;
}
